package com.easyadmin.pro.modules.jobs;

import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

/**
 * packageName com.easyadmin.pro.modules.jobs
 *
 * @author 骑着蚂蚁去上天
 * @version JDK 17
 * @className TestJob
 * @date 2024/8/29
 * @description TODO
 */
@Service
public class TestJob {

    @XxlJob("TestJob")
    public void execute() {
        LocalDateTime now = LocalDateTime.now();
        System.out.println(now);
        XxlJobHelper.log(">>>>>>>执行测试执行器");
    }
}